package a66weding.com.jiehuntong.fragment.category.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

import a66weding.com.jiehuntong.adapter.CategoryAdapter;

/**
 * Created by admin on 2016/8/8.
 */
public class CategoryAdapter1 extends FragmentPagerAdapter {
    private List<Fragment> list;

    public CategoryAdapter1(FragmentManager fm,List<Fragment> list) {
        super(fm);
        this.list = list;
    }

    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }

    @Override
    public int getCount() {
        return list.size();
    }
}
